package com.easthome.service.impl;

import com.easthome.entity.Brands;
import com.easthome.entity.GoodsType;
import com.easthome.mapper.GoodsTypeMapper;
import com.easthome.service.GoodsTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author cxiaoy
 * @Date 2022/10/14 17:08
 */
@Service
public class GoodsTypeServiceImpl implements GoodsTypeService {

    @Autowired
    private GoodsTypeMapper goodsTypeMapper;

    @Override
    public List<GoodsType> findAll() {
        return goodsTypeMapper.selectAll();
    }

    @Override
    public List<Brands> getBrandList() {
        return goodsTypeMapper.getBrandList();
    }
}
